/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  margin: 1em 0;
  padding: 0;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio, canvas, iframe, img, svg, video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: .2em 0;
  padding: .2em 0;
  background: #cccccc;
  color: #000000;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

[ng-cloak] {
  display: none!important;
}


* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  min-width: 400px;
  min-height: 486px;
  /* background-color: #cccccc; */
  /* background-color: #fff; */
  background-color: #212833;
}
h1 {
  font-weight: 500;
  font-size: 22px;
}
a {
  color: #023ba3;
}
.chrome-app {
  position: relative;
  width: 400px;
  background: #ffffff url("../img/bkg-chrome-app.png") no-repeat center 70px;
  font-size: 14px;
  font-family: Roboto, sans-serif;
}
.header {
  position: relative;
  height: 80px;
  background-color: #3985ff;
  background: linear-gradient(118deg,#3985ff,#2b56d5);
}
.sprite {
  display: inline-block;
  background: url("../img/sprite.png") no-repeat;
  background-size: 1000px;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-resolution: 240dpi) {
  .sprite {
    background-image: url(../img/sprite@2x.png);
  }
}
.sprite-logo {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 198px;
  height: 61px;
  background-position: 0 -400px;
  transform: scale(.8) translateX(-28px);
}
.sprite-status-on {
  width: 89px;
  height: 94px;
  background-position: -200px 0;
}
.sprite-status-off {
  width: 89px;
  height: 94px;
  background-position: -400px 0;
}
.sprite-header-status-on {
  width: 28px;
  height: 22px;
  background-position: -600px 0;
}
.sprite-header-status-off {
  width: 22px;
  height: 23px;
  background-position: -800px 0;
}
.header-status {
  position: absolute;
  top: 25px;
  right: 20px;
  width: 100px;
  height: 30px;
  border-radius: 6px;
  background: #cb0000;
  cursor: pointer;
  transition: .25s ease-in-out;
}
.header-status-switch {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  width: 50px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 1px 0px 6px rgba(0,0,0,.3);
  text-align: center;
  font-weight: 900;
  font-size: 17px;
  line-height: 33px;
  transition: .25s ease-in-out;
}
.chrome-app-locale-ru .header-status-switch {
  font-size: 13px;
}
.header-status-switch:before {
  color: #cb0000;
  content: "__MSG_POPUP_OFF__";
}
.header-status-on {
  background: #00a93f;
}
.header-status-on .header-status-switch {
  left: 51px;
  box-shadow: -1px 0px 6px rgba(0,0,0,.3);
}
.header-status-on .header-status-switch:before {
  color: #00a93f;
  content: "__MSG_POPUP_ON__";
}
.header-status > .sprite {
  position: absolute;
  top: 3px;
  z-index: 0;
}
.header-status > .sprite-header-status-on {
  left: 11px;
}
.header-status > .sprite-header-status-off {
  right: 17px;
}
.header-status-disabled {
  opacity: .3;
  cursor: default;
}
.status {
  padding: 20px 20px 15px 20px;
  text-align: center;
}
.status > p {
  margin-top: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 18px;
}
.status > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.status-on > p {
  color: #40917b;
}
.status-off > p {
  color: #ba1818;
}
.btn {
  position: relative;
  top: 0;
  display: inline-block;
  padding: 5px 10px 8px;
  outline: 0;
  border: none;
  border-radius: 8px;
  background-color: #435da4;
  box-shadow: inset 0px -4px 0px rgba(0,0,0,.3);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
}
.btn:hover {
  background-color: #3b4685;
}
.btn:active {
  top: 1px;
  box-shadow: inset 0px -2px 0px rgba(0,0,0,.3);
}
.btn[disabled] {
  opacity: .6;
  pointer-events: none;
}
.status-on .btn {
  background-color: #a44347;
}
.status-on .btn:hover {
  background-color: #913f43;
}
.status-off .btn {
  background-color: #186c48;
}
.status-off .btn:hover {
  background-color: #125237;
}
.page-wrapper {
  min-height: 257px;
}
.page {
  position: relative;
}
.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.page-locations {
  background-color: #cccccc;
}
.page-locations-overlay {
  padding: 60px 20px 20px;
  text-align: center;
  background: rgba(255,255,255,.7);
  z-index: 2;
}
.page-locations-overlay > span {
  padding: 10px;
  display: inline-block;
  font-size: 16px;
  background: rgba(255,255,255,.8);
  /*border: 1px solid #ccc;*/
}


.locations {
  display: flex;
  overflow: hidden;
  margin-bottom: 1px;
  align-items: center;
  flex-wrap: wrap;
  border-top: solid 1px #e1e1e1;
}
.location {
  position: relative;
  padding: 7px 10px 8px 20px;
  width: 50%;
  border-right: solid 1px #e1e1e1;
  border-bottom: solid 1px #e1e1e1;
  background-color: #f7f7f7;
  color: #4f4f4f;
  text-decoration: none;
  transition: background-color .2s ease-in;
}
.location:nth-child(even) {
  border-right: none;
}
.flag-border {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin-right: 5px;
  width: 24px;
  height: 18px;
  border: solid 1px #cecece;
  vertical-align: middle;
}
.flag-border > .flag {
  position: absolute;
  top: -4px;
  left: -1px;
}
.location > strong {
  font-weight: 500;
  font-size: 13px;
}
.location-active {
  background-color: #25b055;
  box-shadow: inset 0 0 0 1px  rgba(0, 0, 0, .15);
  color: #ffffff;
  cursor: default;
  transition: background-color .1s ease-in .1s, box-shadow .3s, color .1s ease-in .1s;
}
.location:not(.location-active):hover {
  background-color: #d2d2d2;
}
.location-disabled {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}


.map {
  position: relative;
  background: #ececec;
}
.map > datamap {
  padding-bottom: 0!important;
}
.map .location-tooltip {
  overflow: visible;
}
.map .location-tooltip-text {
  font-weight: 600;
}
/* .map .location-tooltip-rect { */
/*   fill: #00a93f; */
/* } */
.map .location-tooltip-corner {
  stroke: none!important;
}

.change-location-btn {
  position: absolute;
  top: auto;
  right: 10px;
  bottom: 10px;
  z-index: 999;
  box-shadow: inset 0px -2px 0px rgba(0,0,0,.3);
  font-weight: 300;
  font-size: 12px;
}
.change-location-btn:active {
  top: auto;
  bottom: 9px;
}
.register {
  margin: 0 auto;
  width: 290px;
  height: 234px;
  text-align: center;
}

.register > p {
  color: #666666;
  font-size: 16px;
}

.auth {
  margin: 0 auto;
  width: 290px;
  text-align: center;
  /* padding-bottom: 10px; */
}
.form-group {
  position: relative;
  margin-bottom: 15px;
}
.form-control {
  padding: 10px 15px;
  width: 100%;
  outline: 0;
  border: solid 1px #9e9e9e;
  border-radius: 8px;
  box-shadow: inset 4px 4px 7px rgba(0, 0, 0, .08);
  font-weight: 300;
  font-size: 18px;
}
.form-control:active, .form-control:focus {
  border: solid 1px #000000;
}
.auth h1,
.auth p {
  margin-bottom: 24px;
}
.auth p {
  color: white;
}
.auth p.auth-error {
  color: red;
}
.auth p.auth-loading {
  margin-bottom: 156px;
}
.auth p.sign-up {
  margin-top: 24px;
}
.auth p.sign-up > a,
.auth p.sign-up > a:active,
.auth p.sign-up > a:visited {
  color: white;
  font-weight: 900;
  font-size: 16px;
}
.auth .btn {
  padding: 8px 10px 13px;
  width: 100%;
  background-color: #00a93f;
}
.forgot-pass {
  position: absolute;
  top: 9px;
  right: 15px;
  display: block;
  width: 80px;
  text-align: right;
  text-decoration: none;
  line-height: 1;
}
.forgot-pass:hover {
  text-decoration: underline;
}
.progress {
  padding: 10px;
}
.progress-info {
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-info > span {
  float: left;
}
.progress-info > span + span {
  float: right;
}
.progress-bar {
  clear: both;
  height: 16px;
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6f8fc9), to(#ff2323));
  background: -webkit-linear-gradient(left, #6f8fc9, #ff2323);
  background: linear-gradient(left, #6f8fc9, #ff2323);
  background-color: #6f8fc9;
}
.progress-bar > span {
  display: block;
  float: right;
  height: 16px;
  background-color: #e7e7e7;
}

.order-btn {
  position: relative;
  display: block;
  margin: 0 10px;
  padding: 15px 0;
  outline: 0;
  border: none;
  border-radius: 8px;
  background-color: #f9a400;
  box-shadow: inset 0px -4px 0px rgba(0,0,0,.2);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.2);
  font-weight: 900;
  font-size: 22px;
}
.order-btn:hover {
  background-color: #ec9b00;
}
.order-btn:active {
  top: 1px;
  box-shadow: inset 0px -2px 0px rgba(0,0,0,.3);
}
.footer {
  padding: 15px;
}
.footer-menu {
  margin: 0;
  padding: 0;
  text-align: center;
}
.footer-menu > li {
  display: inline;
  margin: 0 10px;
  list-style: none;
}
.footer-menu > li > a {
  color: #5b5b5b;
}



/* ==========================================================================
   Loading page
   ========================================================================== */
.chrome-app-loading {
  background: #fff;
}
.chrome-app-loading .header-status,
.chrome-app-loading .status,
.chrome-app-loading .progress,
.chrome-app-loading .order-btn,
.chrome-app-loading .footer {
  display: none;
}



/* ==========================================================================
   auth page overrides
   ========================================================================== */
.chrome-app-auth {}
.chrome-app-auth .header-status,
.chrome-app-auth .status,
.chrome-app-auth .progress,
.chrome-app-auth .order-btn,
.chrome-app-auth .footer {
  display: none;
}

.chrome-app-auth .header {
  height: 500px;
  text-align: center;
}
.chrome-app-auth .sprite-logo {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 90px;
  margin-left: -20px;
  transform: scale(1) translateX(10px);
}
.chrome-app-auth .page-wrapper {
  min-height: 0;
}
.chrome-app-auth .page-auth {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}



/* ==========================================================================
   Blocked page overrides
   ========================================================================== */
.chrome-app-blocked {}
.chrome-app-blocked .header-status,
.chrome-app-blocked .status,
.chrome-app-blocked .progress,
.chrome-app-blocked .order-btn,
.chrome-app-blocked .footer {
  display: none;
}

.chrome-app-blocked .header {
  height: 500px;
  text-align: center;
}
.chrome-app-blocked .sprite-logo {
  position: relative;
  top: 0;
  left: 0;
  margin-top: 90px;
  margin-left: -20px;
  transform: scale(1) translateX(10px);
}
.chrome-app-blocked .page-wrapper {
  min-height: 0;
}
.chrome-app-blocked .page-blocked {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
}
.blocked {
  margin: 0 auto;
  width: 290px;
  text-align: center;
  padding-bottom: 20px;
}
.blocked h1,
.blocked ul > li,
.blocked p {
  color: white;
}
.blocked > p a {
  color: white;
}
.blocked ul > li > span {
  display: inline-block;
  width: 200px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chrome-app-locale-ru .blocked h1 {
  margin-bottom: -10px;
}
.chrome-app-locale-ru .blocked p {
  line-height: 17px;
}
.blocked .btn {
  cursor: pointer;
  padding: 8px 10px 13px;
  width: 100%;
  background-color: #00a93f;
}
.blocked ul {
  position: relative;
  top: -8px;
}
.chrome-app-locale-ru .blocked ul {
  margin-bottom: 3px;
}
.blocked ul > li {
  list-style: none;
  text-align: left;
}
.blocked ul > li > img {
  width: 16px;
  height: 16px;
}
.blocked ul > li.more-extensions {
  padding-left: 20px;
  opacity: .5;
}



/* ==========================================================================
   Map page overrides
   ========================================================================== */
.chrome-app-map {}
.chrome-app-map {}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  border: 0;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
  position: static;
  overflow: visible;
  clip: auto;
  margin: 0;
  width: auto;
  height: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before, .clearfix:after {
  display: table; /* 2 */
  content: " "; /* 1 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *, *:before, *:after, *:first-letter, *:first-line {
    background: transparent !important;
    box-shadow: none !important;
    color: #000000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    text-shadow: none !important;
  }

  a, a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }

  pre, blockquote {
    border: 1px solid #999999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

  thead {
    display: table-header-group;
  }

  tr, img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}
